package com.freemyleft.left.left_app.mian.index.my.accept_setup.address_managerment;

import com.freemyleft.left.zapp.ui.recycler.DataConverter;
import com.freemyleft.left.zapp.ui.recycler.MultipleFields;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;

import java.util.ArrayList;

import static com.freemyleft.left.left_app.mian.index.my.accept_setup.address_managerment.AddressManagementAdapter.ADDRESS_TYPE;

public class AddreeManagementConvert extends DataConverter {
    ArrayList<MultipleItemEntity> data=new ArrayList<>();
    @Override
    public ArrayList<MultipleItemEntity> convert() {
        int size=10;
        for (int i = 0; i <10 ; i++) {
            String name="谢老师";
            String phone="122225456546";
            String location="广渠门外大街188号";
            MultipleItemEntity entity=MultipleItemEntity.builder()
                    .setField(MultipleFields.ITEM_TYPE,ADDRESS_TYPE)
                    .setField(AddressManagementAdapter.AddressFiles.NAME,name)
                    .setField(AddressManagementAdapter.AddressFiles.LOCATION,location)
                    .setField(AddressManagementAdapter.AddressFiles.PHONE,phone).build();
            data.add(entity);

        }
        return data;
    }
}
